package view.components
{
	import global.Resource;
	
	public class UIComponents
	{
		public function UIComponents()
		{
		}
		
		public static function getNumericStepper():*
		{
			return new Resource.uicomponent.NumericStepperClass();
		}
		
		public static function getDataProvider():*
		{
			return new Resource.uicomponent.DataProviderClass();
		}
		
		public static function getDataGrid():*
		{
			var dataGrid:* = new  Resource.uicomponent.DataGridClass();
			dataGrid.verticalScrollPolicy = "on";
			return dataGrid;
		}
		
		public static function getTextArea():*
		{
			var textArea:* = new Resource.uicomponent.TextAreaClass();
			return textArea;
		}
		
		public static function getList(width:int,height:int):*
		{
			var list:* = new Resource.uicomponent.ListClass();
			list.width = width;
			list.height = height;
			list.verticalScrollPolicy = "on";
			return list;
		}
		
		public static function getScrollPane(width:int,height:int):*
		{
			var scrollPane:* = new Resource.uicomponent.ScrollPaneClass();
			scrollPane.horizontalScrollPolicy = "off";
			scrollPane.width = width;
			scrollPane.height = height;
			scrollPane..verticalScrollPolicy = "on";
			return scrollPane;
		}
	}
}